<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Timeline</title>
  </head>
  <body>
    <button id="btn">add</button>
    <script>
      const oBtn = document.querySelector("#btn");
      const arrList = [];

      function test() {
        for (let i = 0; i < 100000; i++) {
          document.body.appendChild(document.createElement("p"));

          arrList.push(new Array(100000).join("#"));
        }
      }

      oBtn.addEventListener("click", test);
    </script>
  </body>
</html>
